
/** 最外层的div样式 */

const wrapperStyle = (parentNode: HTMLElement): object => {

    let style = {
        position: "fixed",
        left: parentNode.offsetLeft,
        top: parentNode.offsetTop,
        width: `${parentNode.offsetWidth}px`,
        height: `${parentNode.offsetHeight}px`,
        backgroundColor: "rgba(0, 0, 0, 0.3)",

    }


    return style;
}

export default wrapperStyle